package com.zxw.flow.mapper.toc;
import org.apache.ibatis.annotations.Param;

import com.zxw.flow.domain.entity.toc.FlowJsonData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-08-19
 */
public interface FlowJsonDataMapper extends BaseMapper<FlowJsonData> {

    FlowJsonData selectOneByIdAndUserAccount(@Param("id") Long id, @Param("userAccount") String userAccount);

    FlowJsonData selectOneByUserAccountAndFilePathId(@Param("userAccount") String userAccount, @Param("filePathId") Long filePathId);

    int updateJsonDataByIdAndUserAccount(@Param("jsonData") String jsonData, @Param("id") Long id, @Param("userAccount") String userAccount);

    int deleteByIdAndUserAccount(@Param("id") Long id, @Param("userAccount") String userAccount);

    int deleteByFilePathIdAndUserAccount(@Param("filePathId") Long filePathId, @Param("userAccount") String userAccount);
}
